<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>物业管理系统</title>
    <base href="<%=request.getContextPath()%>/"/>
    <style>
    </style>
    <link rel="stylesheet" href="/webjars/layui/2.6.8/css/layui.css">
    <style>
        .layui-layout-admin .layui-header{
            background: #132a3b;
        }
        .layui-side-scroll,.layui-nav-tree{
            background: #132a3b;
        }
        .layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover{
            background: #1d5c8b;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header" id="header">
        <div class="layui-logo">
            <h3 class="title" style="color: white"><img src="/attach/R-C.jpg" alt="" width="30px" height="30px" style="margin-right:6px">物业管理系统</h3>
        </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="/welcome">控制台</a></li>
<%--            <li class="layui-nav-item"><a href="">商品管理</a></li>--%>
<%--            <li class="layui-nav-item"><a href="">用户</a></li>--%>
<%--            <li class="layui-nav-item">--%>
<%--                <a href="javascript:;">其它系统</a>--%>
<%--                <dl class="layui-nav-child">--%>
<%--                    <dd><a href="">邮件管理</a></dd>--%>
<%--                    <dd><a href="">消息管理</a></dd>--%>
<%--                    <dd><a href="">授权管理</a></dd>--%>
<%--                </dl>--%>
<%--            </li>--%>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="${sessionScope.loginUser.imgs}" class="layui-nav-img">
                    ${sessionScope.loginUser.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/logout">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <%--<ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">系统管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="sys/role/index" target="main">角色管理</a></dd>
                        <dd><a href="sys/user/index" target="main">用户管理</a></dd>
                        <dd><a href="javascript:;">广告管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">销售管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="sys/role/index" target="main">销售计划</a></dd>
                        <dd><a href="sys/user/index" target="main">用户管理2</a></dd>
                        <dd><a href="javascript:;">广告管理2</a></dd>
                    </dl>
                </li>
            </ul>--%>
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <c:forEach items="${sessionScope.menuMap}" var="kv">
                    <li class="layui-nav-item">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;"><i class="layui-icon ${kv.key.permisIcon}"></i>&nbsp;${kv.key.permisName}</a>
                        <dl class="layui-nav-child">
                            <c:forEach items="${kv.value}" var="menu">
                                <dd id="ul-li-dd"><a href="${menu.url}" target="main">${menu.permisName}</a></dd>
                            </c:forEach>
                        </dl>
                    </li>
                </c:forEach>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;height: 550px">
            <iframe name="main" src="/welcome" width="100%" height="100%" frameborder="no"></iframe>
        </div>
    </div>

    <div class="layui-footer" style="height:40px">
        <!-- 底部固定区域 -->
        <p style="color:lightgray;font-size: 20px;line-height: 40px">物业管理系统</p>
    </div>
</div>
<script src="webjars/layui/2.6.8/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
</body>
</html>
